package com.globefrog.framework.common.constant;

/**
 * @author : Globe-Frog
 * @date : Create in 2021/7/6
 */
public class LogConstants {

  public static final String MDC_REQUEST_ID = "MDC_REQUEST_ID";
  public static final String MDC_ACTION = "MDC_ACTION";
  public static final String MDC_TARGET_THREAD_ID = "MDC_TARGET_THREAD_ID";
  public static final String MDC_ORIGIN_THREAD_ID = "MDC_ORIGIN_THREAD_ID";
  public static final String MDC_BUSINESS_CONTEXT = "MDC_BUSINESS_CONTEXT";

  /**
   * 日志日期格式.
   */
  public static final String LOG_DATA_FORMAT = "yyyy-MM-dd-HH-mm-ss-SSS";
  /**
   * 日志分隔符.
   */
  public static final String LOG_SEPARATOR = " | ";
  /**
   * 日志异常长度.
   */
  public static final int LOG_EXCEPTION_LENGTH = 200;
}
